package org.zeapp.opencloud.framework.chunking;

/**
 * This interface must be implemented by any object that is interested to
 * receive Chunking events.
 * 
 * @author Amphiprion
 * 
 */
public interface ChunkListener {
	/**
	 * Called when a new chunk have been identified.
	 * 
	 * @param content
	 *            the buffer containing the chunk data
	 * @param offset
	 *            the start of the chunk data in the buffer
	 * @param length
	 *            the length of the data
	 */
	void ChunkFound(byte[] content, int offset, int length);
}
